package com.chuangshu.chuangshuteam.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class RecruitmentCyclesDTO {
    private Long id;

    private Long teamId;

    /**
     * 创建者ID
     */
    private Long createdBy;

    /**
     * 招新标题
     */
    private String title;

    /**
     * 招新详情公告
     */
    private String description;

    /**
     * 招新方向列表，如["frontend", "backend"]
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> directions;

    /**
     * 报名开始时间
     */
    private LocalDateTime startDate;

    /**
     * 报名截止时间
     */
    private LocalDateTime endDate;

    private String status;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    /**
     * 附件列表
     */
    private List<FileMetadataDto> attachments;
}
